{% extends "res_list.html" %}  
{% block search %}  
  
                     <div class="col-sm-3">  
                        <div class="input-group">  
                            <span class="input-group-addon" id="service_name" >服务名称</span>  
                            <input type="text" class="form-control"  aria-describedby="service_name" name="service_name"  
                             {% if request.GET.service_name %}value = {{ request.GET.service_name }}{% endif %}      >  
                        </div>  
                     </div>  
  
                     <div class="col-sm-3">  
                         <div class="input-group">  
                             <span class="input-group-addon" id="service_project">所属项目</span>  
                             <select class="form-control" name="service_project">  
                                 <option value="">所属项目</option>  
                                 <option value="友邻" {% if request.GET.service_project and request.GET.service_project == '友邻'%} selected{% endif %}>友邻</option>  
                                 <option value="花无缺" {% if request.GET.service_project and request.GET.service_project == '花无缺'%} selected{% endif %}>花无缺</option>  
                                 <option value="停车场" {% if request.GET.service_project and request.GET.service_project == '停车场'%} selected{% endif %}>停车场</option>  
                                <option value="其他"  {% if request.GET.service_project and request.GET.service_project == '其他'%} selected{% endif %}>其他</option>  
                            </select>  
                             </div>  
                    </div>
  
                     <div class="col-sm-3">  
                         <div class="input-group">  
                             <span class="input-group-addon" id="service_status">服务状态</span>  
                             <select class="form-control" name="service_status">  
                                 <option value="">服务状态<a/option>  
                                 <option value="启动" {% if request.GET.service_status and request.GET.service_status == '启动'%} selected{% endif %}>启动</option>  
                                 <option value="未启动" {% if request.GET.service_status and request.GET.service_status == '未启动'%} selected{% endif %}>未启动</option>  
                            </select>  
                             </div>  
                    </div>
{% endblock %}  
  
{% block table_tr %}
            <th>服务名称</th>  
            <th>服务端口</th>  
            <th>所属项目</th>  
            <th>服务状态</th>  
{% endblock %}  
{% block table_td %}
            <td>{{ item.service_name }}</td>  
            <td>{{ item.service_port }}</td>  
            <td>{{ item.service_project }}</td>  
            <td>{{ item.service_status }}</td>  
{% endblock %}
